package game.views;

import hx.utils.SoundManager;
import hx.utils.SceneManager;
import game.worlds.GameWorld;
import hx.display.UILoadScene;

/**
 * 开始界面
 */
@:build(hx.macro.UIBuilder.build("assets/views/StartView.xml"))
class StartView extends UILoadScene {
	override function onLoaded() {
		super.onLoaded();
		SoundManager.getInstance().playBGMSound("start_main");
		this.build_time.data = "构造时间：" + hx.macro.MacroTools.buildDateTime();
		this.start_game.clickEvent = () -> {
			var view = new SelectModeView();
			this.topView.addChild(view);
		}
	}
}
